import {observable,action} from 'mobx';

class TextStore{
  // 数值
  @observable count:number = 0;
  // 加
  @action increase=(num:number)=>{
    this.count+=num
  }
  // 减
  @action decrease=(num:number)=>{
    this.count-=num
  }
}

export default new TextStore()